package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class CharacterSetName implements CharacterSetSpecification {

    private final int beginIndex;
    private final int endIndex;
    private final SchemaName schemaName;
    private final Identifier sqlLanguageIdentifier;

    public CharacterSetName(SchemaName schemaName, Identifier sqlLanguageIdentifier) {
        this.beginIndex = schemaName.getBeginIndex();
        this.endIndex = sqlLanguageIdentifier.getEndIndex();
        this.schemaName = schemaName;
        this.sqlLanguageIdentifier = sqlLanguageIdentifier;
    }

    public int getBeginIndex() {
        return beginIndex;
    }

    public int getEndIndex() {
        return endIndex;
    }

    public SchemaName getSchemaName() {
        return schemaName;
    }

    public Identifier getSqlLanguageIdentifier() {
        return sqlLanguageIdentifier;
    }

}
